#include "AssignmentExpr.h"
#include "ConditionalExpr.h"
#include "UnaryExpr.h"
#include "AssignmentOperator.h"

AssignmentExpr::~AssignmentExpr(void)
{
	if(m_bIsConditionalExpr)
		delete m_pCondExpr;
	else
	{
		delete m_pUnaryExpr;
		delete m_pAssignOp;
		delete m_pAssignExpr;
	}
}

void AssignmentExpr::codeGen()
{
	COUT
	if(m_bIsConditionalExpr)
		m_pCondExpr->codeGen();
	else
	{
		m_pUnaryExpr->codeGen();
		m_pAssignOp->codeGen();
		m_pAssignExpr->codeGen();
	}
}